#include <iostream>
#include<string>
#include<set>
using namespace std;

int main() {
	string str;
	cin >> str;
	set<char> container;
	for (auto& item : str) {
		container.insert(item);
	}
	cout << container.size() << endl;
}
